package com.designpattern.structure.adapter.classadapter;

/**
 * @author Administration
 * @date 2021/10/15 - 16:12 - 星期五
 * @project 结构性模式中的适配器模式  类适配器 适配器类
 * @package com.designpattern.structure.adapter.classadapter
 * @by 晨
 */
public class SDAdapterTF extends TFCardImpl implements SDCard{

    @Override
    public String readSD() {
        System.out.println("adapter read tf card ");
        return readTF();
    }

    @Override
    public void writeSD(String msg) {
        System.out.println("adapter write tf card");
        writeTF(msg);
    }
}
